Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 03-30-2009, 08:04 PM
MarkFoster MarkFoster is offline
 
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, if anybody could take a look I have the files in the attachments.
Attached Files
File Type: zip RWC.zip (3.9 KB, 5 views)
Reply With Quote
  #12  
Old 03-30-2009, 10:15 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try adding thread.prefixid to the two queries in the news.php page. And then just add this under there:

PHP Code:
if ($latestthread['prefixid']) 

$thread['prefix_plain_html'] = htmlspecialchars_uni($vbphrase["prefix_$thread[prefixid]_title_plain"]); 
$thread['prefix_rich'] = $vbphrase["prefix_$thread[prefixid]_title_rich"]; 

else 

$thread['prefix_plain_html'] = ''
$thread['prefix_rich'] = ''

Put it under the lines about the iconpath but above the template eval statement.
Reply With Quote
  #13  
Old 03-30-2009, 10:22 PM
MarkFoster MarkFoster is offline
 
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Try adding thread.prefixid to the two queries in the news.php page. And then just add this under there:

PHP Code:
if ($latestthread['prefixid']) 

$thread['prefix_plain_html'] = htmlspecialchars_uni($vbphrase["prefix_$thread[prefixid]_title_plain"]); 
$thread['prefix_rich'] = $vbphrase["prefix_$thread[prefixid]_title_rich"]; 

else 

$thread['prefix_plain_html'] = ''
$thread['prefix_rich'] = ''

Put it under the lines about the iconpath but above the template eval statement.
I honestly have no idea what your talking about, would you be able to alter it and post the full code here?
Reply With Quote
  #14  
Old 03-30-2009, 10:47 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this a mod you purchased that you have exclusive rights to and can do what you want with (like posting it here)?

What about my directions don't make sense? I mean, I would like to be able to write stuff that people can understand and would love to know where I'm going wrong.
Reply With Quote
  #15  
Old 03-30-2009, 11:18 PM
MarkFoster MarkFoster is offline
 
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Is this a mod you purchased that you have exclusive rights to and can do what you want with (like posting it here)?

What about my directions don't make sense? I mean, I would like to be able to write stuff that people can understand and would love to know where I'm going wrong.
Yes I own the mod and have rights to do what I want with it.

Sorry about that, well I just don't have much of experience with it...
Reply With Quote
  #16  
Old 03-30-2009, 11:31 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I just had to make sure. I was suggesting the changes in the news.php file I've attached along with the change to the template posted above. Of course, I haven't tested it at all, so try it on your test site first. If you get an error, post the exact message.
Attached Files
File Type: php news.php (4.6 KB, 5 views)
Reply With Quote
  #17  
Old 03-31-2009, 12:05 AM
MarkFoster MarkFoster is offline
 
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
OK, I just had to make sure. I was suggesting the changes in the news.php file I've attached along with the change to the template posted above. Of course, I haven't tested it at all, so try it on your test site first. If you get an error, post the exact message.
Nothing at all :/
Would the changes have to be done to the module file? After all it's the module I use for the links.
Reply With Quote
  #18  
Old 03-31-2009, 03:40 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am not familiar with modules at all. But, you would have to add the field to the rwc_newsarchive_bit template at least.

Oh, whoops! Change this (in there twice) "if ($latestthread['prefixid']) " to this "if ($thread['prefixid']) ".
Reply With Quote
  #19  
Old 03-31-2009, 03:46 AM
MarkFoster MarkFoster is offline
 
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
I am not familiar with modules at all. But, you would have to add the field to the rwc_newsarchive_bit template at least.

Oh, whoops! Change this (in there twice) "if ($latestthread['prefixid']) " to this "if ($thread['prefixid']) ".
Now I'm even more confused, what should I do cause I don't fidn that code.
Reply With Quote
  #20  
Old 03-31-2009, 03:52 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They are lines in the news.php file. I forgot to change $latestthread to $thread.
Reply With Quote
Reply


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 12:23 AM.


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.04474 seconds
  • Memory Usage 2,289KB
  • Queries Executed 12 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete