Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-27-2020, 03:56 PM
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Location: USA
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default What type of announcement would include this?

I am working on my skin, and in template threadbit_announcementbit I found this block of code I cant seem to trigger.
HTML Code:
<if condition="$show['forumtitle']"><a href="forumdisplay.php?$session[sessionurl]f=$announcement[forumid]">$announcement[forumtitle]</a> </if>
I have removed the if condition around it, and placed it in a comment
Code:
<!-- <a href="forumdisplay.php?$session[sessionurl]f=$announcement[forumid]">$announcement[forumtitle]</a> -->
But no matter how I set my announcement, I am not pulling any data in this snippet of code. Is there another announcement section I am missing? Other than announcement manager in the admincp.
Code:
<!-- <a href="forumdisplay.php?f="></a> -->
This is vB3 btw.
Reply With Quote
  #2  
Old 05-27-2020, 10:56 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

global announcements differ from forum announcements
Reply With Quote
  #3  
Old 05-28-2020, 07:00 AM
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Location: USA
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100 View Post
global announcements differ from forum announcements
Yes, but neither are returning results on those variables... I have tried multiple variations of notifications, I have tried stacking and unstacking announcements. Yet nothing is setting those varibles...
Reply With Quote
  #4  
Old 05-28-2020, 09:33 AM
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Location: Inside A Blade Server
Posts: 840
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dr.CustUmz View Post
Yes, but neither are returning results on those variables... I have tried multiple variations of notifications, I have tried stacking and unstacking announcements. Yet nothing is setting those varibles...
I'd guess that something in the syntax has changed but I don't have a 3.8x installation to compare with. Is this code from 3.8.11 or an earlier version?
Reply With Quote
Благодарность от:
yellow_spider
  #5  
Old 05-28-2020, 11:32 AM
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Location: USA
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

...your on to something, my master template dump was from an earlier version. Although I am running 3.8.11, i will see if this snippet is still in the template manager.

**edit** just confirmed this snippet is in 3.8.11. no change to the template at all.

keep in mind I am looking at this source on forumdisplay (i am unaware anywhere else that uses threadbit_announcement)


I have tried only having 1 announcement, 1 announcement and a global. only 2 forum announcements, only 2 global announcements, all stacked announcements, and all un stacked, and a few other ways. nothing seems to give these variables values. at this point its just bugging the hell out of me.

is there maybe somewhere else this template is rendered? I searched all templates, and see $announcebits is called in the announcements and search templates also, but I cant figure out how to search for announcements and I defiantly dont see this template being used in the announcement template
Attached Images
File Type: png 2.PNG (34.2 KB, 0 views)
File Type: png 3.PNG (50.0 KB, 0 views)
Reply With Quote
  #6  
Old 05-28-2020, 12:42 PM
lange's Avatar
lange lange is offline
 
Join Date: Apr 2003
Location: Montreal (Canada)
Posts: 282
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dr.CustUmz View Post
Is there another announcement section I am missing? Other than announcement manager in the admincp.
You also have access to the announcement_edit template.
Reply With Quote
  #7  
Old 05-28-2020, 02:27 PM
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Location: USA
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

but threadbit_announcement is not displayed in the edit page. Im just trying to figure out what php pages I can see threadbit_announcment, and how to trigger it to show on said pages.

forumdisplay.php shows it yet doesnt return any values for the snippet. I see $announcebits (which I believe is the variable to call threadbit_announcement template) in search, and announcement. Yet I cant figure out how to get that template to actually appear on either of those pages.
Reply With Quote
  #8  
Old 05-28-2020, 03:01 PM
lange's Avatar
lange lange is offline
 
Join Date: Apr 2003
Location: Montreal (Canada)
Posts: 282
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I understand your problem now.

I am not a coder but I can give you my opinion as a user: the announcement manager as it is now meets my needs perfectly. I ask no more. I can customize the design, give access rights by forum, by user group, etc. As you can see on the following screenshot (a responsive theme), I am using another of your products. :up:
Reply With Quote
  #9  
Old 05-28-2020, 06:23 PM
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Location: USA
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wayne Luke
According to the PHP code, it should trigger on announcement.php where the forumid is greater than -1. I.E. if the announcement is within a specific forum. If it isn't triggering then there is a bug somewhere. However, since vBulletin 3.X is end of life and no longer in development, the bug will never be resolved.
Got my answer from the big man This seems to be useless code, that was either missed for removal, or never implemented. (as far as we can tell)
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 02:36 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.13411 seconds
  • Memory Usage 2,272KB
  • 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_code
  • (1)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (1)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete