Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post [NEW] Block Forum Style 
 
Hi

this block shows up to the last 10 topics on your site similar the the viewforum page...

Someone asks for it and stupidly I thought it was straight forward...   

image below says everything

 16_03_2009_17_44_22

   

recent_topic_forum_block.rar
Description: recent topic forum style block 
Download
Filename: recent_topic_forum_block.rar
Filesize: 3.63 KB
Downloaded: 182 Time(s)

 




____________
Mods and themes for Icy Phoenix 1.3

IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
 
DWhoSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: [NEW] Block Forum Style 
 
Is this based on .27c or the beta?  If it's based on the beta, you might want to edit your first post and include that somewhere.

It looks a lot like a customization; something we should move to the Customizations forum.  Is that OK with you?

Bottom line...it looks great!
 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
ChaoticSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [NEW] Block Forum Style 
 
Chaotic wrote: [View Post]

Bottom line...it looks great!

what line ??

thank you DWho  
 




____________
We are the phpBBorg. Lower your Crackers. Your phpological and forumological distinctivness will be added to our own. Resistance if futile!
 
LimunSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [NEW] Block Forum Style 
 
Chaotic wrote: [View Post]
Is this based on .27c or the beta?  If it's based on the beta, you might want to edit your first post and include that somewhere.

It looks a lot like a customization; something we should move to the Customizations forum.  Is that OK with you?

Bottom line...it looks great!


based on stable release I will do an update when the rc version comes out

appreciate if you move it to customization forum

   

Limun wrote: [View Post]
Chaotic wrote: [View Post]

Bottom line...it looks great!

what line ??

thank you DWho  


LOL your welcome

   
 




____________
Mods and themes for Icy Phoenix 1.3

IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
 
DWhoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [NEW] Block Forum Style 
 
LOL @ Limun!

Moving the topic, DWho.
 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
ChaoticSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [NEW] Block Forum Style 
 
Chaotic wrote: [View Post]


Moving the topic, DWho.


Thanks
 




____________
Mods and themes for Icy Phoenix 1.3

IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
 
DWhoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [NEW] Block Forum Style 
 
Maybe the most interesting thing about this could be if we could make a block for each forum, which displays threads randomly instead of the most recent, which would be senseless on this case (because you got to look only from up to down :D). I mean, if we are browsing forum 1, the block will show randomly X threads from that forum (if we do the same with forum 2, so threads from it), or maybe X posts among the best rated ones.
 




____________
Support Info

Ivory Tower URL: : http://www.torredemarfil.es/foro/ Version: 2.0
 
SarakinSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [NEW] Block Forum Style 
 
Sarakin, it is just a php code that looks for threads on the forum

Code: [Download] [Hide]
  1. $id_query = sql_query( 'USE [yourIPDB]\;  
  2. SELECT \'id\', \'thread_name\' FROM \'ip_posts\' WHERE \'forum_id\'=' . $_GET['f']);  
  3.  
  4. $id_container= array($id_query);  
  5.  
  6. //Now we have the ids at a array,as all of them are decimal, just use rnd()  
  7.  
  8. rnd($id_container);  
  9.  
  10. //Then code for looking for the thread title and print it to screen. 


Just a little bit similar. (PS: IDK if rnd() was the correct syntax for picking a random number from a array)

I leave the last part right now uncompleted, I have to go to bed and sleep....   
 



 
novice programmerSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [NEW] Block Forum Style 
 
I don't understand 100%, but it seems your code would show random threads from a different forum (random) each time the block is loaded. What I meant is about a block which, depending on the foum you're browsing (the block should be added on the viewforum page), would show random threads from that forum (so what we need is a code which could be able to identify what forum we're in), or maybe the best rated from it, for instance.

And thanks for your interest anyway...  
 




____________
Support Info

Ivory Tower URL: : http://www.torredemarfil.es/foro/ Version: 2.0
 
SarakinSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [NEW] Block Forum Style 
 
Sounds like it might be something some members will use...

I sadly have no more free time to do any side projects

   
 




____________
Mods and themes for Icy Phoenix 1.3

IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
 
DWhoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [NEW] Block Forum Style 
 
Sarakin wrote: [View Post]
I don't understand 100%, but it seems your code would show random threads from a different forum (random) each time the block is loaded. What I meant is about a block which, depending on the foum you're browsing (the block should be added on the viewforum page), would show random threads from that forum (so what we need is a code which could be able to identify what forum we're in), or maybe the best rated from it, for instance.

And thanks for your interest anyway...  


$_GET array var get the vars given on the url, after the ?

for this url: ...viewtopic.php?f=21&t=5581&highlight=

we have $_GET['f'] = 2;
$_GET['t'] = 5581;
$_GET['highlight'] = ;

And when you write a something, a form, makes vars on the $_POST array.

So forum id is not ramdom, it is given by the f=[FORUM_ID] var at the URL/URI

What is ramdom is the post shown, but I do not know if the code is ok, I made it on a hurry, and perhaps it has to be fixed
 



 
novice programmerSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [NEW] Block Forum Style 
 
Thanks for your explanations, I want to understand you're telling me what I said is possible, so I'll try your code as soon as possible and I'll return to report the results  
 




____________
Support Info

Ivory Tower URL: : http://www.torredemarfil.es/foro/ Version: 2.0
 
SarakinSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: [NEW] Block Forum Style 
 
Sarakin wrote: [View Post]
Thanks for your explanations, I want to understand you're telling me what I said is possible, so I'll try your code as soon as possible and I'll return to report the results  


Ok, I will try to explain myself.

Perhaps php.net documentation will help you understanding me.

PHP reserved variables
$_GET documentation
$_POST documentation

About HTTP GET and POST....
 



 
novice programmerSend private message  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron