Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
Details »»

Version: , by jacy jacy is offline
Developer Last Online: May 2003 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 02-02-2002 Last Update: Never Installs: 0
 
No support by the author.

I posted this on vbulletin.com in the Templates forum but I'm wondering if it's veering to closely toward a hack, so I'm trying here, too. Sorry for any double effort.

I've modified my thread options links (print, email and subscribe, with their images) to be part of my forumrules template. Looks the way I want, but I can't get the threadid to pass into the link properly.

I've tried adding an eval to function.php, including the forumrules template in templatesused in showthread.php, and so on. Nothing seems to get it to work. I'm sure I'm missing something rather obvious and simple but can't get at it.

Here's an example of how I would like it formatted. The thread options are in a third TD tag in the forumrules table at the bottom:
http://asthmatrack.org/forums/showth...?threadid=1358

Click one of the thread options and you'll get the 'no thread id' error message. My forumrules template is as follows:

<table cellpadding="0" cellspacing="0" border="0" bgcolor="#0A293E"><tr><td>
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td bgcolor="#13486D"><smallfont>
You <b>may $rules[postnew]</b> post new threads.<br>
You <b>may $rules[postreply]</b> post replies.<br>
You <b>may $rules[attachment]</b> post attachments.<br>
You <b>may $rules[edit]</b> edit your posts.
</smallfont></td>
<td bgcolor="#13486D"><smallfont>
<a href="misc.php?s=$session[sessionhash]&action=bbcode" target="_blank">vB code</a> is <b>$bbcodeon</b><br>
<a href="misc.php?s=$session[sessionhash]&action=showsmilies" target="_blank">Smilies</a> are <b>$smilieson</b><br>
<a href="misc.php?s=$session[sessionhash]&action=bbcode#imgcode" target="_blank">[IMG]</a> code is <b>$imgcodeon</b>
</smallfont></td><td bgcolor="#13486D"><smallfont><img src="https://vborg.vbsupport.ru/images/printer.gif" alt="" border="0" align="absmiddle">
<a href="printthread.php?s=$session[sessionhash]&threadid=$threadid">Show Printable Version</a><br><img src="https://vborg.vbsupport.ru/images/sendtofriend.gif" alt="" border="0" align="absmiddle">
<a href="sendtofriend.php?s=$session[sessionhash]&threadid=$threadid">Email this Page</a><br><img src="https://vborg.vbsupport.ru/images/subscribe.gif" alt="" border="0" align="absmiddle">
<a href="member2.php?s=$session[sessionhash]&action=addsubscription&threadid=$threadid">Subscr ibe to this Thread</a>
</smallfont>
</td></tr>
</table>
</td></tr></table>


Thanks for any help! I bought vBulletin almost 2 years ago but gave up getting it running out of frustration and ignorance. Finally went at it again last night after learning of the vServers issues (my server) and got it up and running and my old board imported in a matter of a couple hours. Now if I can just get these little AR aesthetic details worked out...

~Jacy

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-03-2002, 12:53 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to globalize $threadid in the getforumrules() function:
Code:
function getforumrules($foruminfo,$permissions) {
  // array of foruminfo and permissions for this forum
  global $offtext,$ontext,$forumrules,$session[high],$threadid[/high];
(what you need to add is highlighted)
Reply With Quote
  #3  
Old 02-03-2002, 06:57 PM
jacy jacy is offline
 
Join Date: Feb 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That did the trick, Chen. Knew it had to be something very simple but crucial. Thanks so much for the reply!

~Jacy
Reply With Quote
  #4  
Old 02-04-2002, 01:04 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No probs.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:10 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04738 seconds
  • Memory Usage 2,223KB
  • Queries Executed 17 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete