| Author |
Message |
Imago
Captain


Joined: Jan 17, 2003
Posts: 629
Location: Europe
|
Posted:
Sun Sep 21, 2003 4:04 am |
  |
open nukebb.php and
AFTER
get_lang($module_name);
ADD
| Code: |
$pagetitle = "$name";
if($p) {
$sql = "SELECT post_subject, post_id FROM ".$prefix."_bbposts_text WHERE post_id='$p'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$title = $row[post_subject];
$post = $row[post_id];
$pagetitle = "$name | Post $post | $title";
}
if($t) {
$sql = "SELECT topic_title, forum_id FROM ".$prefix."_bbtopics WHERE topic_id='$t'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$title = $row[topic_title];
$forum = $row[forum_id];
$sql = "SELECT forum_name FROM ".$prefix."_bbforums WHERE forum_id='$forum'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$forum = $row[forum_name];
$pagetitle = "| $name | $forum | $title";
}
elseif($f) {
$sql = "SELECT forum_name FROM ".$prefix."_bbforums WHERE forum_id='$f'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$forum = $row[forum_name];
$pagetitle = "| $name | $forum";
} |
PS. There are some important addons to the code
http://www.orientalgate.org/fortopic442.html |
Last edited by Imago on Tue Sep 23, 2003 2:12 am; edited 1 time in total |
|
    |
 |
Mesum
Support Staff


Joined: Mar 11, 2003
Posts: 842
Location: Chicago
|
Posted:
Mon Sep 22, 2003 6:01 pm |
  |
|
       |
 |
Imago
Captain


Joined: Jan 17, 2003
Posts: 629
Location: Europe
|
Posted:
Mon Sep 22, 2003 8:56 pm |
  |
Oh, most of them. There is a code for total browser management of the Encyclopedia terms, which is much better than the one proposed by me in February.
Here is the code:
http://www.orientalgate.org/fortopic443.html |
Last edited by Imago on Tue Sep 23, 2003 5:03 am; edited 1 time in total |
|
    |
 |
Namsul
Captain


Joined: Feb 13, 2003
Posts: 339
Location: Australia
|
Posted:
Mon Sep 22, 2003 10:16 pm |
  |
Both are nice enhancements .. thanx
I did find I had to add the Encyclopedia addition after the
| Code: |
| $pagetitle = "- "._ENCYCLOPEDIA.""; |
which was a line lower than
| Code: |
| get_lang($module_name); |
But I had mucked around with Encyclopedia the other day and maybe my order was messed up. |
|
|
     |
 |
Imago
Captain


Joined: Jan 17, 2003
Posts: 629
Location: Europe
|
Posted:
Mon Sep 22, 2003 10:57 pm |
  |
It is my fault. It is REPLACE rather than AFTER
REPLACE
| Code: |
| $pagetitle = "- "._ENCYCLOPEDIA.""; |
WITH my code
Thank you. |
|
|
    |
 |
Imago
Captain


Joined: Jan 17, 2003
Posts: 629
Location: Europe
|
Posted:
Tue Sep 23, 2003 12:55 am |
  |
|
    |
 |
johnnycard
Corporal


Joined: May 29, 2003
Posts: 52
Location: UK
|
Posted:
Tue Sep 23, 2003 10:22 am |
  |
Great hack!
On the Category hack though....
You may want to change the
| Code: |
if (!eregi("gate.html", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly..."); |
to
| Code: |
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly..."); |
otherwise the old "You can't access this file directly..." appears on the page |
|
|
   |
 |
Imago
Captain


Joined: Jan 17, 2003
Posts: 629
Location: Europe
|
Posted:
Wed Sep 24, 2003 3:15 am |
  |
|
    |
 |
stevecpp
Nuke Cadet


Joined: Aug 14, 2003
Posts: 3
|
Posted:
Wed Sep 24, 2003 8:54 am |
  |
For some reason, after I installed this, nothing showed up in my browser bar, then, all of a sudden, everything showed up as it should. Now, lol, it stopped showing up again. Could it be a setting I have somewhere? That is making it do this?
www.squiresinn.net
Was nice while it was working for me. |
|
|
   |
 |
stevecpp
Nuke Cadet


Joined: Aug 14, 2003
Posts: 3
|
Posted:
Wed Sep 24, 2003 10:05 am |
  |
nevermind, works now. Seems to have been a cookie problem after I upgraded the forum to 2.06 |
|
|
   |
 |
checksum
Sergeant


Joined: Apr 30, 2003
Posts: 122
|
Posted:
Fri Oct 10, 2003 1:28 am |
  |
I have GT my forum, but the hack does not work when I am viewing a post:
It says:
| Code: |
Senegal Online > Forums > Post 5122 >#5122#5122#5122#5122 |
It works all the way to the forum gategory index, but not when you are viewing a post. |
|
|
   |
 |
Gaurav
Captain


Joined: Oct 13, 2003
Posts: 317
|
Posted:
Tue Dec 23, 2003 2:18 am |
  |
did someone find an answer for this?
I have the same prob when, someone clicks a post from the scrolling latest forum msgs. Also I get the same kind of title when user is redirected to the message after posting a reply (even if u mannualy enter a new subject for the post).
Thank u |
_________________
 |
|
    |
 |
aabbcc
Corporal


Joined: Feb 20, 2004
Posts: 60
|
Posted:
Sat Feb 21, 2004 2:20 am |
  |
|
    |
 |
djalecc
Lieutenant


Joined: Feb 21, 2004
Posts: 180
Location: Gloucestershire
|
Posted:
Thu Aug 19, 2004 12:26 pm |
  |
Anyone found a fix for this in the Scrolling Fourm Block?
I.e. If you click a scrolling fourm link, it says POST NUMBER instead of the subject title! |
_________________ Free Dating
Courier Service Foook It! |
|
    |
 |
Gaurav
Captain


Joined: Oct 13, 2003
Posts: 317
|
Posted:
Thu Aug 19, 2004 4:21 pm |
  |
yeah, I did.
Its been long time and now I don't recall anything about the fix but I think ZX helped me and the fix is somewhere in forums. You can search for it and/or go through my posts and look the date after Tue Dec 23, 2003 |
_________________
 |
|
    |
 |
|
|