Sub-Forum Banner

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Sub-Forum Banner

Post by Lumpy Burgertushie »

I have a feeling that the mistakes in your code are what is causing the 500 error.
if you can get into the admin panel, purge the cache from there.
If not, then use your ftp and access your board and delete everything from the cache folder except for the index and htaccess files.

then hard refresh your browser to see if it works.

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
Mravens10
Registered User
Posts: 12
Joined: Fri Jan 18, 2019 2:49 pm

Re: Sub-Forum Banner

Post by Mravens10 »

Did all of this and still not working. Sorry if I am being a bother.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Sub-Forum Banner

Post by Lumpy Burgertushie »

no bother. however, you have not done it correctly because I still see the same code mistakes in your html file. either you have not changed the right file or you have not uploaded the right file or you have uploaded it to the wrong place or you have not purged the cache.

you can see if you can access the error logs for your site. the blank page is usually a sign of a php error or in this case, the coding mistakes can cause it as well.

so, if you can access those logs in your cpanel copy and paste the last 25 or so lines here for us to look at .

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
Talk19Zehn
Registered User
Posts: 846
Joined: Tue Aug 09, 2011 1:10 pm
Contact:

Re: Sub-Forum Banner / Viewforum / Forum-ID

Post by Talk19Zehn »

Small Sub-Forum Banner / Viewforum / Forum-ID

Hello, an extension is unknown to me. Here it works also with my *examples (a small next first aid).

*Hint:
The first category has the ID 1
and therein lies the forum with the ID 2

The second category has the ID 4
and therein lies the forum with the ID 5

*Note: When setting up a forum please regulate the orderly parent forum.
Graphics are in the style(-path) ===> prosilver / theme / images. Please change the name for your graphics, the format (gif, png, jpg) and the alt-text.


*HTML: Test, test, test ... (prosilver)

Code: Select all

<!-- IF FORUM_ID == '2' -->
<div class="inner imagebannerviewforum"><img src="{T_THEME_PATH}/images/bannergreen.jpg" class="imagebannerviewforum" alt="banner" /></div>
<!-- ELSEIF FORUM_ID == '4' -->
<div class="inner imagebannerviewforum"><img src="{T_THEME_PATH}/images/bannerredandgreen.png" class="imagebannerviewforum" alt="banner" /></div>
<!-- ELSEIF FORUM_ID == '5' -->
<div class="inner imagebannerviewforum"><img src="{T_THEME_PATH}/images/bannergamergroup.gif" class="imagebannerviewforum" alt="banner" /></div>
<!-- ENDIF -->


I also think you will need a little CSS (custom.css)

*CSS: Test, test, test ... (prosilver)

Code: Select all

/* show bannerviewforum
---------------------------------------------- */
	.imagebannerviewforum {
	text-align: center;
	}
	.imagebannerviewforum img {
	display: block;
	max-width: 80%;
	height:	auto;
	margin: 12px auto;
	}

Maybe it will work now on your board.


.
Edit: Customize your CSS as desired and compliant. :)

I´ve edit the codes: UUups, - perhaps classes are a better way.

Regards
Last edited by Talk19Zehn on Sun Jan 20, 2019 7:38 am, edited 1 time in total.
Best regards
phpBB3 Designs - My own works: Stylearea Ongray-Designs, Adventinducement-Calendar for phpBB
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Sub-Forum Banner

Post by Lumpy Burgertushie »

I have no idea what all that is for. the code I posted above is absolutely correct and works everytime if you do it correctly.

the OP is simply not able to get the code entered correctly and/or his edits are being cached and he has not cleared the cache yet to see the new edits.


robert

I just checked and now he has removed all the relevant code from the viewforum_body.html file.


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
Mravens10
Registered User
Posts: 12
Joined: Fri Jan 18, 2019 2:49 pm

Re: Sub-Forum Banner

Post by Mravens10 »

I tried both ways and I still can’t get anything to work. Yes I did cache it correctly both times. I did the ACP way and I did the FTP way. I think I might just let this be because I’m not good at descriptive help as much and though it would of been simple. I wish there was a video describing what to do. Anyway thanks for both of your help and sorry for the waste of time.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Sub-Forum Banner

Post by Lumpy Burgertushie »

ok, here is a version that does work.
replace your acidtech/template/viewforum_body.html file with this one:
https://phpbbusers.com/support/viewforum_body.zip

purge the cache and test. let us know when you have done it.


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
Mravens10
Registered User
Posts: 12
Joined: Fri Jan 18, 2019 2:49 pm

Re: Sub-Forum Banner

Post by Mravens10 »

Lumpy Burgertushie wrote: Sat Jan 19, 2019 6:29 pm ok, here is a version that does work.
replace your acidtech/template/viewforum_body.html file with this one:
https://phpbbusers.com/support/viewforum_body.zip

purge the cache and test. let us know when you have done it.


robert

I want to give you a big apologies for ever doubting you my friend. Thanks so much dude it freaking works! You rock bro!
http://powerzonicgaming.com/forum/viewforum.php?style=2&f=24
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Sub-Forum Banner

Post by Lumpy Burgertushie »

good work.

just remember when you start to add the other banners for other forums, be very careful with your edits.
every single space, arrow etc. etc. has to be exact or it does not work.


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
Mravens10
Registered User
Posts: 12
Joined: Fri Jan 18, 2019 2:49 pm

Re: Sub-Forum Banner

Post by Mravens10 »

Will do! Thanks again bud!
Post Reply

Return to “phpBB Custom Coding”