You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 62 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Forum, Topic, and Post Title in Browser Bar [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Sun Sep 21, 2003 4:04 am Reply with quoteBack to top

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
Find all posts by ImagoView user's profileSend private messageVisit poster's website
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Mon Sep 22, 2003 6:01 pm Reply with quoteBack to top

I wonder how many other modules we can do the same thing....

_________________
Only FREE Dating site for Desis.
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Mon Sep 22, 2003 8:56 pm Reply with quoteBack to top

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
Find all posts by ImagoView user's profileSend private messageVisit poster's website
Namsul
Captain
Captain


Joined: Feb 13, 2003
Posts: 339

Location: Australia

PostPosted: Mon Sep 22, 2003 10:16 pm Reply with quoteBack to top

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.
Find all posts by NamsulView user's profileSend private messageSend e-mailVisit poster's website
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Mon Sep 22, 2003 10:57 pm Reply with quoteBack to top

It is my fault. It is REPLACE rather than AFTER

REPLACE
Code:
$pagetitle = "- "._ENCYCLOPEDIA."";


WITH my code

Thank you.
Find all posts by ImagoView user's profileSend private messageVisit poster's website
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Tue Sep 23, 2003 12:55 am Reply with quoteBack to top

Forum category Titles have also been added to the hack and the new nukebb.php has been released under GNU.

Demo and copy the file here
http://www.orientalgate.org/fortopic442.html

_________________
www.vdsp.net | www.indopedia.org | www.orientalia.org | www.indology.net | www.yogadarsana.org | www.husserl.info | www.medicum.net
Find all posts by ImagoView user's profileSend private messageVisit poster's website
johnnycard
Corporal
Corporal


Joined: May 29, 2003
Posts: 52

Location: UK

PostPosted: Tue Sep 23, 2003 10:22 am Reply with quoteBack to top

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
Find all posts by johnnycardView user's profileSend private message
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Wed Sep 24, 2003 3:15 am Reply with quoteBack to top

On my server modules.php is rewritten to gate.html and I simply overlooked it.

Thank you.

_________________
www.vdsp.net | www.indopedia.org | www.orientalia.org | www.indology.net | www.yogadarsana.org | www.husserl.info | www.medicum.net
Find all posts by ImagoView user's profileSend private messageVisit poster's website
stevecpp
Nuke Cadet
Nuke Cadet


Joined: Aug 14, 2003
Posts: 3


PostPosted: Wed Sep 24, 2003 8:54 am Reply with quoteBack to top

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.
Find all posts by stevecppView user's profileSend private message
stevecpp
Nuke Cadet
Nuke Cadet


Joined: Aug 14, 2003
Posts: 3


PostPosted: Wed Sep 24, 2003 10:05 am Reply with quoteBack to top

nevermind, works now. Seems to have been a cookie problem after I upgraded the forum to 2.06
Find all posts by stevecppView user's profileSend private message
checksum
Sergeant
Sergeant


Joined: Apr 30, 2003
Posts: 122


PostPosted: Fri Oct 10, 2003 1:28 am Reply with quoteBack to top

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.
Find all posts by checksumView user's profileSend private message
Gaurav
Captain
Captain


Joined: Oct 13, 2003
Posts: 317


PostPosted: Tue Dec 23, 2003 2:18 am Reply with quoteBack to top

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

_________________
Image
Find all posts by GauravView user's profileSend private messageVisit poster's website
aabbcc
Corporal
Corporal


Joined: Feb 20, 2004
Posts: 60


PostPosted: Sat Feb 21, 2004 2:20 am Reply with quoteBack to top

That's what I needed. Thanks you!

_________________
World of Warcraft Nation
Find all posts by aabbccView user's profileSend private messageVisit poster's website
djalecc
Lieutenant
Lieutenant


Joined: Feb 21, 2004
Posts: 180

Location: Gloucestershire

PostPosted: Thu Aug 19, 2004 12:26 pm Reply with quoteBack to top

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!
Find all posts by djaleccView user's profileSend private messageVisit poster's website
Gaurav
Captain
Captain


Joined: Oct 13, 2003
Posts: 317


PostPosted: Thu Aug 19, 2004 4:21 pm Reply with quoteBack to top

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

_________________
Image
Find all posts by GauravView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.269 Seconds - 201 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::