New Vista Theme Request

Got a favorite forum template you would like ported to phpBB or IntegraMOD?

Re: New Vista Theme Request

PostAuthor: violative » Thu Mar 05, 2009 12:28 am

Thank you for the update..
I got a question about bbcodes
I have added some bbcodes for use in the forums and they work when its used in the reply text box.
My question is will bbcode work on a custom page? like maybe on our frontpage?
You can discover more about a person in an hour of play than in a year of conversation. -- Plato
Image
User avatar
violative
 
Posts: 36
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sun Dec 23, 2007 6:59 am
Cash on hand: 0.00
Location: Kelso, Washington
Blog: View Blog (0)

Re: New Vista Theme Request

PostAuthor: Helter » Thu Mar 05, 2009 9:36 am

yes they should because your custom pages are index pages. You just need to remember that when you do phpbb updates that alter index.php, also add those updates to index_home.php and any other index_*.php page that you create
User avatar
Helter
Site Admin
 
Posts: 548
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Tue Jul 19, 2005 1:29 pm
Cash on hand: 45.15
Location: Seattle Wa
Blog: View Blog (0)

Re: New Vista Theme Request

PostAuthor: violative » Mon Mar 16, 2009 1:26 am

I tried to use a custom bbcode on the frontpage, but it won't work..
I searched for days for a way to make it work, found no answers I am hoping you can help?
Thank you
You can discover more about a person in an hour of play than in a year of conversation. -- Plato
Image
User avatar
violative
 
Posts: 36
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sun Dec 23, 2007 6:59 am
Cash on hand: 0.00
Location: Kelso, Washington
Blog: View Blog (0)

Re: New Vista Theme Request

PostAuthor: Helter » Mon Mar 16, 2009 7:58 am

post a copy of your index_home.php
User avatar
Helter
Site Admin
 
Posts: 548
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Tue Jul 19, 2005 1:29 pm
Cash on hand: 45.15
Location: Seattle Wa
Blog: View Blog (0)

Re: New Vista Theme Request

PostAuthor: violative » Mon Mar 16, 2009 7:47 pm

ok I uploaded to you it a PM :-)
You can discover more about a person in an hour of play than in a year of conversation. -- Plato
Image
User avatar
violative
 
Posts: 36
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sun Dec 23, 2007 6:59 am
Cash on hand: 0.00
Location: Kelso, Washington
Blog: View Blog (0)

Re: New Vista Theme Request

PostAuthor: violative » Tue Mar 17, 2009 6:26 pm

Hi,
I uploaded the file you gave me (thanks ;-) )
and in the index_home.html I used this bbcode
[countup]04/12/2005 [/countup]

Don't Work.

Sorry maybe I don't understand something.
Can I use bbcobe on that page?
How?
I found this
http://wiki.phpbb.com/Parsing_text

I became even more lost
Farther help?
Thanks
You can discover more about a person in an hour of play than in a year of conversation. -- Plato
Image
User avatar
violative
 
Posts: 36
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sun Dec 23, 2007 6:59 am
Cash on hand: 0.00
Location: Kelso, Washington
Blog: View Blog (0)

Re: New Vista Theme Request

PostAuthor: Helter » Tue Mar 17, 2009 7:34 pm

do you have a link to the countup bbcode mod?
User avatar
Helter
Site Admin
 
Posts: 548
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Tue Jul 19, 2005 1:29 pm
Cash on hand: 45.15
Location: Seattle Wa
Blog: View Blog (0)

Re: New Vista Theme Request

PostAuthor: violative » Wed Mar 18, 2009 7:07 pm

The code:

BBCode usage:
[CountUp]{NUMBER1}/{NUMBER2}/{NUMBER3} {TEXT}[/CountUp]

HTML replacement:
<script type="text/javascript">

/*
Count up from any date script-
By JavaScript Kit (http://www.javascriptkit.com)
Over 200+ free scripts here!
*/

var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")

function countup(yr,m,d){
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy
var paststring=montharray[m-1]+" "+d+", "+yr
var difference=(Math.round((Date.parse(todaystring)-Date.parse(paststring))/(24*60*60*1000))*1)
difference+=" days"
document.write("We have been "+difference+" online {TEXT}")
}
//enter the count up date using the format year/month/day
countup({NUMBER3},{NUMBER2},{NUMBER1})
</script>
You can discover more about a person in an hour of play than in a year of conversation. -- Plato
Image
User avatar
violative
 
Posts: 36
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sun Dec 23, 2007 6:59 am
Cash on hand: 0.00
Location: Kelso, Washington
Blog: View Blog (0)

Re: New Vista Theme Request

PostAuthor: Helter » Thu Mar 19, 2009 6:59 am

I could not find this used as a bbcode. I did find it used as a standalone js. It is used in this format

place this code where ever you want the countup to be displayed.

  1. <script type="text/javascript">
  2.  
  3. /*
  4. Count up from any date script-
  5. By JavaScript Kit (http://www.javascriptkit.com)
  6. Over 200+ free scripts here!
  7. */
  8.  
  9. var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
  10.  
  11. function countup(yr,m,d){
  12. var today=new Date()
  13. var todayy=today.getYear()
  14. if (todayy < 1000)
  15. todayy+=1900
  16. var todaym=today.getMonth()
  17. var todayd=today.getDate()
  18. var todaystring=montharray[todaym]+" "+todayd+", "+todayy
  19. var paststring=montharray[m-1]+" "+d+", "+yr
  20. var difference=(Math.round((Date.parse(todaystring)-Date.parse(paststring))/(24*60*60*1000))*1)
  21. difference+=" days"
  22. document.write("It\'s been "+difference+" since the birth of ProTeamClan")
  23. }
  24. //enter the count up date using the format year/month/day
  25. countup(2004,12,04)
  26. </script>


edit this text to describe what your counting up from "It\'s been "+difference+" since the birth of ProTeamClan"

This code displays as this
It's been 1566 days since the birth of ProTeamClan
User avatar
Helter
Site Admin
 
Posts: 548
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Tue Jul 19, 2005 1:29 pm
Cash on hand: 45.15
Location: Seattle Wa
Blog: View Blog (0)

Re: New Vista Theme Request

PostAuthor: violative » Thu Mar 19, 2009 4:54 pm

It works as a bbcode its on my forum when posting. But not on the custom pages.
I want it to work on those pages too.
I don't remember were I got it, my guess is http://startrekguide.com
But question still remains:
How can I use the custom bbcode from phpbb3
And how can I make a custom page, is this possible?
I know I can add the script normally; I don't want to do it that way
I want to be able to use the bbcode that I add to the APC Posting.
I'll continue to look.
Any farther help would be appreciated.
Thank you.
You can discover more about a person in an hour of play than in a year of conversation. -- Plato
Image
User avatar
violative
 
Posts: 36
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sun Dec 23, 2007 6:59 am
Cash on hand: 0.00
Location: Kelso, Washington
Blog: View Blog (0)

PreviousNext

Return to Template/Theme Requests

Who is online

Registered users: Blue Steel

cron