Jump to content


Photo

New In-forum Feature


  • Please log in to reply
21 replies to this topic

#1 Crater

Crater
  • Members
  • 35 posts

Posted 14 August 2004 - 05:43 PM

When im browsing through a board on this forum (eg. suggestions), i get loads of indescriptive title that mean ntohing to me, i select from those the ones that sound interesting, but how can i be sure they will be?

my suggestion is you alter the PHP to get the first post of each thread (or even the first line) via altering the mysql query. then it would be displayed via editing the anchor to be as follows

<a href="link" title="first line of the post going here.....">

then all we would have to do is hover over it to get a taster.



NB. to increase the chances of this getting through, i will offer step-by-step instructions to edit it, should you require them.

#2 JLH

JLH

    Administrator

  • Admin
  • 1771 posts

Posted 15 August 2004 - 12:52 AM

like in vbulletin, i don't beleive there is a mod for ibp that does that when you hover over the thread name.
it would be a fairly big bit of code to add on, and would have to go on all the skin files etc, so i'm not going to do it
Anything i post on here is subject to change at any time without notification to the board.

#3 Crater

Crater
  • Members
  • 35 posts

Posted 15 August 2004 - 01:50 PM

like in vbulletin, i don't beleive there is a mod for ibp that does that when you hover over the thread name.
it would be a fairly big bit of code to add on, and would have to go on all the skin files etc, so i'm not going to do it

Yes, exactly like vB.

The edit is not one that would be required across skin files, its a simple edit in one file.

its a shame you dont want to do it :P

Also, its a shame you havent put a "donate towards getting the Invision arcade for the forum" button on the donate page :P

#4 JLH

JLH

    Administrator

  • Admin
  • 1771 posts

Posted 15 August 2004 - 04:20 PM

simple edit in 1 file? i find that odd, but fair enough, i've not looked into detail how the forum was coded. what is the simple edit?
Anything i post on here is subject to change at any time without notification to the board.

#5 alone

alone
  • Members
  • 2261 posts

Posted 15 August 2004 - 04:25 PM

Becareful here JLH.. You may have met your match!

-runs to the hills for fear of a bloody fight-
"Entertain yourself with my nightmares."
- AfterAll

Bunny!

#6 Crater

Crater
  • Members
  • 35 posts

Posted 23 August 2004 - 05:09 PM

simple edit in 1 file? i find that odd, but fair enough, i've not looked into detail how the forum was coded. what is the simple edit?

AFAIK of the way IPB is coded, all the retrieval code comes into one file which is included within the skins at the location the results are desired, and a style sheet is included to specifiy image locations etc. and colors.

anyway, in the index.php file, ctrl-f for the word "if" until you get something like this

if (HTTP_GET_VARS["showforum"])

(it may have been saved intoa variable earlier, i havent accounted for that. as you have vb programming knowledge, youll find the assignment syntax to be highly similar, but there are no declarations.)

anyway, i digress

within that block (indicated by { and } ) find the statement that says
mysql_query blah blah here

anyway, take note of the variable it asks for.

now open up mysql

issue the following command
show databases;

it will list the databases

find the one that would mostapply to invision, its probably called "IPB"

use IPB;
list tables;

find the one that applies to threads, its probably called "threads"

describe threads;

it will list the variables being held in the table.

there should be a variable named something like forum, or parent

if you find that then thats fine, staright to editing the PHP

if not, post back here. its also be useful if you posted output from the following commands

list tables;    (when your in the IPB database)
describe forums;
describe threads;

Whatever you get, post back here and ill post the appropriate php code.

#7 Crater

Crater
  • Members
  • 35 posts

Posted 23 August 2004 - 05:10 PM

Becareful here JLH.. You may have met your match!

-runs to the hills for fear of a bloody fight-

:P I'm a pro, expect me to be good :P

Or no-one would hire me :P

#8 JLH

JLH

    Administrator

  • Admin
  • 1771 posts

Posted 23 August 2004 - 06:16 PM

i ain't going through all that, lol
easier if you just download IPB from the website (it's free) and look at the source code yourself
Anything i post on here is subject to change at any time without notification to the board.

#9 Prophet

Prophet
  • Members
  • 1772 posts

Posted 24 August 2004 - 10:09 AM

Becareful here JLH.. You may have met your match!

-runs to the hills for fear of a bloody fight-

:P I'm a pro, expect me to be good :P

Or no-one would hire me :P

No one does hire you.
Si Senior!

#10 Xlithan

Xlithan

    Discord Moderator

  • Members
  • 1050 posts

Posted 24 August 2004 - 05:04 PM

i hate it when people come on here copying and pasting tutorials/snippets from other web-pages claiming to be professionals in the 'trade'. lol

#11 Crater

Crater
  • Members
  • 35 posts

Posted 25 August 2004 - 09:52 AM

What a pity neither of you are right :P

I just got hired to make a multiplayer Poker game (in PHP of course)

And I do not copy other people code and pass it off as my own.

Nor was it a tutorial, i spent ten minutes typing it all out AAMOF

#12 Prophet

Prophet
  • Members
  • 1772 posts

Posted 25 August 2004 - 09:57 AM

Your not getting paid much to make the poker game in vb though...

Edited by Prophet, 25 August 2004 - 09:57 AM.

Si Senior!

#13 Crater

Crater
  • Members
  • 35 posts

Posted 25 August 2004 - 11:29 AM

Cept its PHP :P

and who cares how much it is, its something :P

#14 Xlithan

Xlithan

    Discord Moderator

  • Members
  • 1050 posts

Posted 25 August 2004 - 12:47 PM

right ok then....

#15 Crater

Crater
  • Members
  • 35 posts

Posted 25 August 2004 - 01:03 PM

slightly closer to an admission i actually do know more than you believe...

carry on, i want to hear those words... :P

#16 Angelus

Angelus
  • Members
  • 1202 posts

Posted 25 August 2004 - 01:10 PM

PHP is like ASP? Cause if so then it is simply VB with some HTML, and anyone with a bit of basic knowledge on that can make a poker game.
Angelus ingame.
Back into the shadows once again...

#17 Pandilex

Pandilex

    Administrator

  • Admin
  • 568 posts

Posted 25 August 2004 - 02:01 PM

ASP is like VB with HTML? lmao!

PHP's syntax is like C++/Java
If you build it, they will come.

#18 Crater

Crater
  • Members
  • 35 posts

Posted 25 August 2004 - 02:04 PM

ASP and PHP are entirely different, ROFL

PHP resembles Java syntax I suppose, but the commands are fairly different.

I was gonna write the prog in perl (my native programming tongue) but my friends site ran so much faster when he converted it to php i decided to write it in that instead (as i have a good working knowledge of both languages, although perl even more) :P

So there we are.

I didnt realise you programmed java, Pandi?

#19 Xlithan

Xlithan

    Discord Moderator

  • Members
  • 1050 posts

Posted 25 August 2004 - 02:51 PM

Sorry angelus, but now you really do look like a retard. even an unexperienced web-coder like myself knows well that PHP is nothing like ASP. just check out some of the ASP forums compared to PHP forums.

ASP forums are usually used on webservers that don't support PHP, and they are terrible. VB with HTML, are you referring to VB Script, which is sometimes used in websites, but i don't believe it's commonly used.

Java can make windows applications, as well as web applications, but i don't think PHP is powerful enough to make windows applications.

#20 JLH

JLH

    Administrator

  • Admin
  • 1771 posts

Posted 25 August 2004 - 03:36 PM

php isn't a standalone language, it's a webserver one
java however can be used for pretty much anything, however isn't that fast compared to a native language like perl/vb/c/.net
Anything i post on here is subject to change at any time without notification to the board.

#21 Angelus

Angelus
  • Members
  • 1202 posts

Posted 25 August 2004 - 04:30 PM

Sorry angelus, but now you really do look like a retard.  even an unexperienced web-coder like myself knows well that PHP is nothing like ASP.  just check out some of the ASP forums compared to PHP forums.

I don't know html. I make VB programs for people who use it in ASP. And seeing as PHP does the same as ASP i simply wondered if they used the same language...

ASP is like VB with HTML? lmao!


And yes exactly, ASP is a html page with VB coding in it. Only thing that can't be done is messageboxes with VB seeing as they would pop up on the server side instead of the users side.

Edited by Angelus, 25 August 2004 - 04:32 PM.

Angelus ingame.
Back into the shadows once again...

#22 Crater

Crater
  • Members
  • 35 posts

Posted 25 August 2004 - 04:33 PM

actually php can be compiled, a compiler does exist.

altho technically it converts it to c++ and compiles it, its near enough a compiler. meh.

java is 1/20th the speed of C++ , but that is made up for by its portability and its ease of learning

.Net is slow, despite what microsoft say, its a similar technology to Java, just a different set of languages.

perl is btw not compiled, it is interpreted, altho as per php, a compiler or translate-then-compile-r does exist, but its still a fair bit slower than writing raw C++, perhaps it doesnt translate it into efficient code?

oh, and vb is slow too :P but its ease of use and learning makes it widely suitable, and I tend to write many vb programs and few C++ or c ones. (c i generally only use on my linux pc, the gcc c++ addin is pretty crap :P)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users